﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace HiTeachers.Entities
{
    [Serializable]
    public class Teacher : DomainObject<Guid>
    {
        public virtual string Name { get; set; }

        public virtual int Age { get; set; }

        public virtual string PhoneNumber { get; set; }

        public virtual string Email { get; set; }

        public virtual string Password { get; set; }

        public virtual bool IsContactEmail { get; set; }

        public virtual bool IsReceiveNews { get; set; }

        public virtual string ImagePath { get; set; }

        public virtual string Address { get; set; }

        public virtual string District { get; set; }

        public virtual string City { get; set; }

        public virtual string Subject { get; set; }

        public virtual decimal Fees { get; set; }

        public virtual string Availability { get; set; }

        public virtual string Intro { get; set; }

        public virtual string Discribe { get; set; }

        public virtual bool IsFullAccount { get; set; }

        public virtual int Rate { get; set; }

        public virtual bool IsVerified { get; set; }

        public virtual DateTime UpdatedDate { get; set; }

        public virtual DateTime RegistedDate { get; set; }

        public virtual DateTime ActivatedDate { get; set; }

        public virtual DateTime DeactivatedDate { get; set; }

        [XmlIgnore]
        public virtual IList<StudentFeedback> Feedbacks { get; set; }

        [XmlIgnore]
        public virtual IList<Role> Roles { get; set; }

        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }
    }
}